package org.lds.message.center.admin.business.template.service;

import org.lds.message.center.admin.business.template.entity.Template;
import org.lds.message.center.admin.business.template.model.request.*;
import org.lds.message.center.admin.business.template.model.response.*;
import org.lds.message.center.common.model.ResultDTO;
import org.lds.message.center.common.model.db.OrderBy;
import org.lds.message.center.common.model.db.PageResult;


/**
 * 基础服务类
 *
 * @author lidongsheng
 * @since 2024-12-22
 */
public interface TemplateBaseService {
    /**
     * 创建
     */
    ResultDTO<TemplateBaseResponse> createTemplate(TemplateBaseCreateRequest request);

    /**
     * 批量创建
     */
    ResultDTO<TemplateBaseBatchCreateResponse> batchCreateTemplate(TemplateBaseBatchCreateRequest request);

    /**
     * 删除
     */
    ResultDTO<TemplateBaseDeleteResponse> deleteTemplate(TemplateBaseDeleteRequest request);

    /**
     * 批量删除
     */
    ResultDTO<TemplateBaseBatchDeleteResponse> batchDeleteTemplate(TemplateBaseBatchDeleteRequest request);

    /**
     * 更新
     */
    ResultDTO<TemplateBaseResponse> updateTemplate(TemplateBaseUpdateRequest request);

    /**
     * 批量更新
     */
    ResultDTO<TemplateBaseBatchUpdateResponse> batchUpdateTemplate(TemplateBaseBatchUpdateRequest request);

    /**
     * 根据ID查询
     */
    ResultDTO<TemplateBaseResponse> getTemplateById(TemplateBaseGetByIdRequest request);

    /**
     * 根据ID集合查询
     */
    ResultDTO<TemplateBaseListResponse> getTemplateByIds(TemplateBaseGetByIdsRequest request);

    /**
     * 根据业务主键查询
     */
    Template getTemplateByKey(TemplateBaseGetByKeyRequest request);

    /**
     * 查询
     */
    ResultDTO<TemplateBaseListResponse> listTemplate(TemplateBaseListRequest request);

    /**
     * 查询所有
     */
    ResultDTO<TemplateBaseListResponse> listAllTemplate(OrderBy orderBy);

    /**
     * 分页查询
     */
    ResultDTO<PageResult<TemplateBaseResponse>> listTemplatePage(TemplateBaseListPageRequest request);


    /***************************** 异步尝鲜 谨慎使用[性能提升10倍以上] start ******************************/

    /**
     * 异步批量创建
     */
    ResultDTO<TemplateBaseBatchCreateResponse> batchCreateTemplateAsync(TemplateBaseBatchCreateRequest request);

    /**
     * 异步批量删除
     */
    ResultDTO<TemplateBaseBatchDeleteResponse> batchDeleteTemplateAsync(TemplateBaseBatchDeleteRequest request);

    /**
     * 异步批量更新
     */
    ResultDTO<TemplateBaseBatchUpdateResponse> batchUpdateTemplateAsync(TemplateBaseBatchUpdateRequest request);

    /***************************** 异步尝鲜 谨慎使用[性能提升10倍以上] end ******************************/
}